<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- 第一步移动端视口 -->
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 第二步引入mui的css和js -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <script src="./assets/mui/js/mui.js"></script>
    <!-- 手机端JQ -->
    <script src="./assets/zepto/zepto.min.js"></script>
    <!-- 引入js -->
    <script src="./js/base.js"></script>
    <script src="./js/search-list.js"></script>
    <script src="./js/template-web.js"></script>

    <!-- 引入图标字体css -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/search-list.css">
</head>

<body>
    <!-- 主页面标题 -->
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-icon mui-icon-arrowleft mui-pull-left" href="search.html"></a>
        <h1 class="mui-title">乐海淘购物</h1>
    </header>

    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon iconfont fa fa-shopping-cart"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="register.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>
    <div class="searchList" id="refreshContainer">
        <div>
            <!-- 我的搜索详情 -->
            <div class="top mui-clearfix">
                <button type="button" class="mui-btn mui-btn-warning" id="priceSort">价格
                    <i class="mui-icon mui-icon-arrowdown"></i></button>

                <button type="button" class="mui-btn mui-btn-danger"id="lengSort">销量
                    <i class="mui-icon mui-icon-arrowdown"></i></button>

            </div>
            <div class="center">
                <div class="lifeSports">
                    <ul class="mui-clearfix" id="ulBox">
                        <!-- <li>
                        <a href="">
                            <img src="./images/product.jpg" alt="">
                            <span class="des">adidas阿迪达斯 男式 场下休闲篮球鞋S83700</span>
                            <p><span>&yen;880元</span><span>&yen;3880元</span></p>
                            <button>立即剁手</button>
                        </a>
                    </li> -->
                    </ul>
                </div>
            </div>
        </div>
    </div>


    <script type="html/text" id="tmp">
    {{each data item }}
    <li>
        <a href="">
            <img src="{{item.pic[0].picAddr}}" alt="">
            <span class="des">{{item.proName}}</span>
            <p>
                <span>&yen;{{item.price}}元</span>
                <span>&yen;{{item.oldPrice}}元</span></p>
            <button>立即剁手</button>
         </a>
    </li>
        {{/each}}
    </script>
</body>

</html>